package com.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.domain.entity.DmBudgetStandardDate;
import com.project.domain.entity.DmProjectType;
import com.project.mapper.BudgetStandardDateMapper;
import com.project.mapper.ProjectTypeMapper;
import com.project.service.IBudgetStandardDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 项目分类时间计划从Service业务层处理
 *
 * @author ruoyi
 * @date 2025-02-08
 */
@Service
public class BudgetStandardDateServiceImpl  extends ServiceImpl<BudgetStandardDateMapper, DmBudgetStandardDate>  implements IBudgetStandardDateService {
    @Autowired
    private BudgetStandardDateMapper dmBudgetStandardDateMapper;

    /**
     * 查询项目分类时间计划从
     *
     * @param ID 项目分类时间计划从主键
     * @return 项目分类时间计划从
     */
    @Override
    public DmBudgetStandardDate selectDmBudgetStandardDateByID(String ID) {
        return dmBudgetStandardDateMapper.selectDmBudgetStandardDateByID(ID);
    }

    /**
     * 查询项目分类时间计划从列表
     *
     * @param dmBudgetStandardDate 项目分类时间计划从
     * @return 项目分类时间计划从
     */
    @Override
    public List<DmBudgetStandardDate> selectDmBudgetStandardDateList(DmBudgetStandardDate dmBudgetStandardDate) {
        return dmBudgetStandardDateMapper.selectDmBudgetStandardDateList(dmBudgetStandardDate);
    }

    /**
     * 新增项目分类时间计划从
     *
     * @param dmBudgetStandardDate 项目分类时间计划从
     * @return 结果
     */
    @Override
    public int insertDmBudgetStandardDate(DmBudgetStandardDate dmBudgetStandardDate) {
        return dmBudgetStandardDateMapper.insertDmBudgetStandardDate(dmBudgetStandardDate);
    }

    /**
     * 修改项目分类时间计划从
     *
     * @param dmBudgetStandardDate 项目分类时间计划从
     * @return 结果
     */
    @Override
    public int updateDmBudgetStandardDate(DmBudgetStandardDate dmBudgetStandardDate) {
        return dmBudgetStandardDateMapper.updateDmBudgetStandardDate(dmBudgetStandardDate);
    }

    /**
     * 批量删除项目分类时间计划从
     *
     * @param IDs 需要删除的项目分类时间计划从主键
     * @return 结果
     */
    @Override
    public int deleteDmBudgetStandardDateByIDs(String[] IDs) {
        return dmBudgetStandardDateMapper.deleteDmBudgetStandardDateByIDs(IDs);
    }

    /**
     * 删除项目分类时间计划从信息
     *
     * @param ID 项目分类时间计划从主键
     * @return 结果
     */
    @Override
    public int deleteDmBudgetStandardDateByID(String ID) {
        return dmBudgetStandardDateMapper.deleteDmBudgetStandardDateByID(ID);
    }
}
